/* author: Mariana Horita
   mariana.horita@gmail.com
   file: A3E2.cs*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Resolucao
{
    public partial class A3E2 : Form
    {
        public A3E2()
        {
            InitializeComponent();
        }

        private void btOk_Click(object sender, EventArgs e)
        {
            if (rdDtp.Checked)
            {
                if (Convert.ToDateTime(mtxData.Text) == dtp.Value.Date)
                {
                    MessageBox.Show("Igual");
                }
            }
            else
            {
                if (Convert.ToDateTime(mtxData.Text) == mc.SelectionStart)
                {
                    MessageBox.Show("Igual");
                }
            }
        }
    }
}
